package com.omar.labs.tamtamy.XML;

import com.omar.labs.tamtamy.UserStats;
import com.omar.labs.tamtamy.utils.XMLUtility;

public class XMLUserStats extends UserStats {

	public XMLUserStats(String xml) {
		super();
		this.id = Long.parseLong(XMLUtility.getNodeValue(xml, "id"));
        this.generated = XMLUtility.getNodeValueWithAttribute(xml, "generated", "class=\"sql-timestamp\"");
        this.position = XMLUtility.getNodeValue(xml, "position");				
	}
}
